<template>
    <div class="car-list">
        <scroll class="content" ref="scroll">
            <div>
                <car-list-item v-for="(item,index) in carList" :key="index" :carItem="item"></car-list-item>
            </div>
        </scroll>
    </div>
</template>
<script>
    import Scroll from 'components/common/scroll/Scroll'
    import CarListItem from './CarListItem'
    export default {
        name: 'carList',
        components: {
            Scroll,
            CarListItem
        },
        props: {
            carList: {
                type: Array,
                default() {
                    return []
                }
            }
        },
        activated() {
            this.$refs.scroll.refresh;
        },

    }
</script>
<style scoped>
    .car-list {
        height: calc(100vh - 44px - 49px);
    }
    .content {
        height: 100%;
        overflow: hidden;
    }
</style>